/**
 * Created by zhong on 2018/1/24.
 */
import mongoose from 'mongoose';
const RecipeSchema = new mongoose.Schema({ //定义数据模型
  title: String,
  desc: String,
  food: Array,
  ingredients: Array,
  steps: Object,
  author: String,
  createDate: Date,
  editDate: Date,
  tag: Array,
  star: {type:Number,default:5},
  starCount: {type:Number,default:0}
})
const Recipes = mongoose.model('Recipes', RecipeSchema,'Recipes');
export default Recipes
